import asyncio


async def execute(x):
    print('Number:', x)


# coroutine = execute(1)
# task = asyncio.ensure_future(coroutine)
# print('Coroutine:', coroutine)
print('After calling execute')


# loop = asyncio.get_event_loop()
# task = loop.create_task(coroutine)
# loop.run_until_complete(task)
async def main():
    tasks = [execute(1) for _ in range(10)]
    await asyncio.gather(*tasks)


asyncio.run(main())
print('After calling loop')
